project(stock)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_CXX_FLAGS "-std=c++11")
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
#set(QT_DONT_USE_QTGUI true)
set(QT_USE_QTNETWORK TRUE)
set(sources appMain.cpp 
	MainWindow.cpp
	CentralWidget.cpp
	CommandFactory.cpp
	AboutDialog.cpp
	AboutCommand.cpp
	ExitCommand.cpp
	ItemSelectionDialog.cpp
	StockRequest.cpp
	)
set(moc_sources 
	MainWindow.h
	CentralWidget.h
	AboutDialog.h
	ItemSelectionDialog.h
	)
QT4_WRAP_CPP(mocs ${moc_sources})
add_executable(stock ${sources} ${mocs} ${headers})
target_link_libraries(stock ${QT_LIBRARIES})


